package net.lcheng.files.controller;

import net.lcheng.utils.UploadResultModel;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by qiliping on 16/7/20.
 */
@RestController
public class HomeController {

    @ResponseBody
    @RequestMapping(value = "home",headers = "Accept=application/json")
    public UploadResultModel home(Model model){
        UploadResultModel resultModel = new UploadResultModel();
        resultModel.setCode(-1);
        resultModel.setMsg("error");
        resultModel.setUrl("");
        return resultModel;
    }
}
